import React from 'react'
import useData from '../hooks/useData'
export default function Test() {
  const {list}=useData()
  return (
    <div>
        <h1>测试</h1>
        <ul>
        {
            list.map((item,index)=><li key={index}>
                {item}
            </li>)
        }
        </ul>
    </div>
  )
}
